#include<iostream>
#include<vector>
#include<queue>
#include<cstring>
#include<cmath>
#include<map>
#include<set>
#include<cstdio>
#include<algorithm>
#define debug(a) cout<<#a<<"="<<a<<endl;
using namespace std;
const int maxn=1e5;
typedef long long LL;
map<LL,LL>map1;
int main(void)
{
  cin.tie(0);std::ios::sync_with_stdio(false);
  LL t;cin>>t;
  while(t--){
    LL n;cin>>n;
    map1.clear();
    for(LL i=1;i<=n;i++) {
        LL x;cin>>x;
        map1[x]++;
    }
    bool flag=1;
    for(auto i:map1){
        if(i.second>=2){
            flag=0;
            cout<<"YES"<<endl;
            break;
        }
    }
    if(flag==1){
        cout<<"NO"<<endl;
    }
  }
return 0;
}
